export default (url, method, params) => {
		const token = uni.getStorageSync('token');
	return new Promise((resolve, reject) => {
		wx.request({

			url: " https://mokacui.work" + url,
			method: method,
			header: {
				Authorization:'Bearer ' + token,
				// platform:'h5'

			},
			data: {

				...params
			},
			success(res) {
				resolve(res.data);
			},
			fail(err) {
				reject(err);
			},
			complete() {
				uni.hideLoading();
			}
		});
	});
};
